﻿.scroll-box {
    position: relative;
    top: 0;
    width: min(100%, 980px);
    height: auto;
    margin: 0 auto 48px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 18px 40px rgba(145, 107, 107, 0.12), inset 0 0 30px rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.scroll-box-header {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
}

.scroll-box-header h2 {
    margin: 6px 0 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: rgba(75, 58, 58, 0.92);
}

.scroll-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateLight 15s linear infinite;
}

.scroll-content {
    padding: 8px 0 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: relative;
    z-index: 1;
}

.card-container {
    display: flex;
    gap: 25px;
    padding: 10px;
    width: fit-content;
    position: relative;
}

.card {
    min-width: 250px;
    max-width: 250px;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(5px);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), inset 0 0 20px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.card:hover {
    transform: translateY(-5px) scale(1.02) rotateX(5deg);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), inset 0 0 30px rgba(255, 255, 255, 0.18);
}

.card h3 {
    color: rgba(80, 80, 80, 0.9);
    margin-bottom: 12px;
    font-size: 1.05rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.card p {
    color: rgba(100, 100, 100, 0.85);
    line-height: 1.55;
    font-size: 0.92rem;
}

.row-right { animation: scroll-right 30s linear infinite; transform-style: preserve-3d; }
.row-left { animation: scroll-left 30s linear infinite; transform-style: preserve-3d; }
.row-right:hover, .row-left:hover { animation-play-state: paused; }

.scroll-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 209, 220, 0.25) 0%, transparent 12%, transparent 88%, rgba(255, 209, 220, 0.25) 100%), linear-gradient(180deg, rgba(255, 209, 220, 0.12) 0%, transparent 10%, transparent 90%, rgba(255, 209, 220, 0.12) 100%);
    pointer-events: none;
}

@keyframes rotateLight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scroll-right {
    /* 从 0 移动到 -50%（移动一组卡片的宽度），配合 HTML 中内容重复，形成无缝循环 */
    0% { transform: translateX(0) translateZ(0); }
    100% { transform: translateX(-50%) translateZ(0); }
}

@keyframes scroll-left {
    /* 反向移动以实现相反方向的无缝循环 */
    0% { transform: translateX(-50%) translateZ(0); }
    100% { transform: translateX(0) translateZ(0); }
}
